<?php
class Match extends CI_Controller {
	public function __construct() {
		parent::__construct ();
		
		// 登录校验
		$this->common->check_login_admin ();
		$this->load->helper ( array (
				'form',
				'url',
				'system' 
		) );
		$this->load->model ( 'order_model' );
		$this->load->model ( 'user_model' );
		$this->load->model ( 'Order_Admin_model' );
	}
	
	/**
	 * 取得帮助
	 */
	public function index($page = 1) {
	}
	public function match($page = 1) {
		$data ['order_type'] = array (
				'静态钱包',
				'推广钱包' 
		);
		$data ['dakuan_type'] = array (
				'未打款',
				'已经打款',
				'拒绝打款' 
		);
		
		$perpage = 10;
		
		if ($page == 0) {
			$page = 1;
		}
		
		$data ['log_list'] = $this->Order_Admin_model->order_log_list_all ( $page, $perpage );
		
		$data ['data_count'] = $this->Order_Admin_model->order_log_list_all_count ();
		
		$data ['multi'] = multi ( $data ['data_count'], $perpage, $page, site_url ( 'admin/match/match/?' ), '?' );
		
		$data ['left'] = $this->load->view ( 'admin/left', '', TRUE );
		$data ['menu'] = $this->load->view ( 'admin/menu', '', TRUE );
		
		$this->load->view ( 'admin/match', $data, FALSE );
	}
}